package edu.zust.zw.shop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import edu.zust.zw.shop.service.SMAreaInfoService;
import edu.zust.zw.shop.util.Result;

@RequestMapping("/test")
@RestController
public class TestController {

    @Autowired
    private SMAreaInfoService areaInfoService;
    
    @GetMapping("/get")
    public Result get(Integer areaId) {
        return Result.success("areaInfo", areaInfoService.getAreaInfoById(areaId));
    }
    
}
